package com.learn.word.controller;

import org.springframework.web.bind.annotation.*;

/**
 * @author Valley
 * Created by Valley on 2023/6/25 18:09
 */
@RestController
@RequestMapping("user")
@CrossOrigin
public class UserController {

    @PostMapping("login")
    public Object login(@RequestBody Object user) throws Exception {
        System.out.println(user);
        return user;
    }

    @PostMapping("register")
    public Object register(@RequestBody Object user){
        System.out.println(user);
        return user;
    }

}
